import request from '@/utils/request';

/** 表单数据 */
export function formTableApi(data) {
  return request({
    method: 'POST',
    url: '/activity/pageConditionQueryByCreatorId',
    data,
  });
}
//删除
export function activityDeleteIdApi(data) {
  return request({
    method: 'POST',
    url: '/activity/batchDeleteActivity',
    data,
  });
}
//详情
export function activityLookDetailApi(data) {
  return request({
    method: 'POST',
    url: '/activity/queryByUpdate',
    data,
  });
}

//地区
export function formAddressApi(data) {
  return request({
    method: 'POST',
    url: '/address/queryAddressForFourLinkage',
    data,
  });
}
//草稿
export function formSaveDrafts(data) {
  return request({
    method: 'POST',
    url: '/activity/saveDrafts',
    data,
  });
}
//编辑
export function activityDetailApi(data) {
  return request({
    method: 'POST',
    url: '/activity/queryByUpdate',
    data,
  });
}
//白名单
export function whiteListApi(data) {
  return request({
    method: 'POST',
    url: '/activity/pageConditionQueryActivityByCreatorId',
    data,
  });
}
//设置白名单列表
export function setWhiteList(data) {
  return request({
    method: 'POST',
    url: '/activity/queryByActivityBasicId',
    data,
  });
}
//
export function changeWhite(data) {
  return request({
    method: 'POST',
    url: '/activity/updateByCondition',
    data,
  });
}
//
export function downWhite(data) {
  return request({
    method: 'POST',
    url: '/activity/candidate/downloadCandidateTemplate',
    data,
    responseType: 'blob',
  });
}
//
export function getWhite(data) {
  return request({
    method: 'POST',
    url: '/activity/candidate/pageByCandidateQuery',
    data,
  });
}
